package com.course.android.ui.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.baselib.android.utils.Logger;
import com.baselib.android.view.BasePlatAdapter;
import com.course.android.R;
import com.course.android.ui.adapter_holder.MainPageHolder;


public class MainPageAdapter extends BasePlatAdapter<String, MainPageHolder> {


    public MainPageAdapter(Context context) {
        super(context);
    }

    @Override
    protected MainPageHolder createHolder(View view) {
        return new MainPageHolder(view);
    }

    @Override
    protected int layoutId() {
        return R.layout.adapter_main;
    }

    @Override
    protected void bindData(String s, MainPageHolder mainPageHolder) {
        Logger.e(s);
        mainPageHolder.textView.setText(s);
    }
}
